package com.boot.app.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.boot.app.base.vo.MenuInfo;
import com.boot.app.system.domain.SystemCode;
import com.boot.app.system.mapper.SystemCodeMapper;
import com.boot.app.system.service.ISystemCodeService;
import com.boot.app.system.vo.CodeInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SystemCodeServiceImpl extends ServiceImpl<SystemCodeMapper, SystemCode> implements ISystemCodeService {

    private final SystemCodeMapper mapper;

    @Autowired
    public SystemCodeServiceImpl(
        SystemCodeMapper mapper
    ){
        this.mapper = mapper;
    }

    @Override
    public List<CodeInfo> fetchCodeInfo() {
        return mapper.selectCodeInfo();
    }

}
